/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.lane.entity;

import com.thinkgem.jeesite.common.utils.SpringContextHolder;
import com.thinkgem.jeesite.modules.sys.dao.AreaDao;
import com.thinkgem.jeesite.modules.sys.dao.DictDao;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 车道信息Entity
 * @author xlp
 * @version 2019-04-12
 */
public class Lane extends DataEntity<Lane> {
	
	private static final long serialVersionUID = 1L;
	private String laneNum;			//车道编号
	private String laneName;		// 车道名称
	private String remainSpace;		// 车道剩余车位
	private String totalSpace;		// 车道总车位
	private String areaId;		// 区域id,所属区域
	private Date updateTime;		// 更新时间
	private String guidingId;		// 引导灯id
	private String areaName;//区域名称

	public String getLaneNum() {
		return laneNum;
	}

	public void setLaneNum(String laneNum) {
		this.laneNum = laneNum;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public Lane() {
		super();
	}

	public Lane(String id){
		super(id);
	}

	@Length(min=0, max=64, message="车道名称长度必须介于 0 和 64 之间")
	public String getLaneName() {
		return laneName;
	}

	public void setLaneName(String laneName) {
		this.laneName = laneName;
	}
	
	@Length(min=1, max=64, message="车道剩余车位长度必须介于 1 和 64 之间")
	public String getRemainSpace() {
		return remainSpace;
	}

	public void setRemainSpace(String remainSpace) {
		this.remainSpace = remainSpace;
	}
	
	@Length(min=1, max=64, message="车道总车位长度必须介于 1 和 64 之间")
	public String getTotalSpace() {
		return totalSpace;
	}

	public void setTotalSpace(String totalSpace) {
		this.totalSpace = totalSpace;
	}
	
	@Length(min=1, max=64, message="区域id,所属区域长度必须介于 1 和 64 之间")
	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@Length(min=1, max=64, message="引导灯id长度必须介于 1 和 64 之间")
	public String getGuidingId() {
		return guidingId;
	}

	public void setGuidingId(String guidingId) {
		this.guidingId = guidingId;
	}
	
}